<?php
/**
{
    "teacherLabelId": "INT //老师标签id",
    "teacherId": "INT //教师@foreign::tbl_teacher; @search",
    "labelId": "INT //标签@foreign::tbl_label; @search; ",
    "labelName": "VARCHAR //标签名",
    "labelImg": "VARCHAR //标签图标@image; ",
    "status": "TINYINT //状态@status; 3::有效; 88::删除"
}
 */

class TeacherLabel extends Base
{
    
	private $teacherLabelId= '';//老师标签id
	private $teacherId= '';//教师@foreign::tbl_teacher;@search
	private $labelId= '';//标签@foreign::tbl_label;@search;
	private $labelName= NULL;//标签名
	private $labelImg= NULL;//标签图标@image;
	private $status= "3";//状态@status;3::有效;88::删除

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_teacher_label';
    }
    
    public  function key(){
        return 'teacherLabelId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'TeacherLabel';
    }
    
    public  function field()
    {
        return array (  'teacherLabelId' =>   array (    0 => 'INT',    1 => 11,    2 => '老师标签id',  ),  'teacherId' =>   array (    0 => 'INT',    1 => 11,    2 => '教师@foreign::tbl_teacher;@search',  ),  'labelId' =>   array (    0 => 'INT',    1 => 11,    2 => '标签@foreign::tbl_label;@search;',  ),  'labelName' =>   array (    0 => 'VARCHAR',    1 => 255,    2 => '标签名',  ),  'labelImg' =>   array (    0 => 'VARCHAR',    1 => 512,    2 => '标签图标@image;',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;3::有效;88::删除',  ),);
    }


}